package com.yunji.cabinet.dao;

import com.yunji.cabinet.domain.DeviceEventDO;
import com.yunji.cabinet.params.DeviceEventParam;
import com.yunji.common.annotation.DataScope;
import com.yunji.common.base.IBaseDao;
import com.yunji.common.constant.PermissionTypeConstant;

import java.util.List;

public interface IDeviceEventDao extends IBaseDao<DeviceEventDO> {
    @DataScope(PermissionTypeConstant.DATA_SCOPE_BELONG)
    List<DeviceEventDO> search(DeviceEventParam param);

    List<String> searchTableField(DeviceEventParam param);

    DeviceEventDO getByEventDataCode(String eventDataCode,Integer finishStatus);

    List<DeviceEventDO> listByEventDataCode(List<String> eventDataCodeList);

    void updateEvent(String maintainCode, String afterCmd);
}
